home *** CD-ROM | disk | FTP | other *** search
/ Nebula 1 / Nebula One.iso / Mail / pine3.92 / pico / makefile.os2 < prev    next >
Makefile  |  1996-03-14  |  3KB  |  129 lines

  1. # $Id: makefile.os2,v 4.2 1996/03/15 07:41:11 hubert Exp $
  2. #
  3. #   Michael Seibel
  4. #   Networks and Distributed Computing
  5. #   Computing and Communications
  6. #   University of Washington
  7. #   Administration Builiding, AG-44
  8. #   Seattle, Washington, 98195, USA
  9. #   Internet: mikes@cac.washington.edu
  10. #
  11. #   Please address all bugs and comments to "pine-bugs@cac.washington.edu"
  12. #
  13. #
  14. #   Pine and Pico are registered trademarks of the University of Washington.
  15. #   No commercial use of these trademarks may be made without prior written
  16. #   permission of the University of Washington.
  17. #
  18. #   Pine, Pico, and Pilot software and its included text are Copyright
  19. #   1989-1996 by the University of Washington.
  20. #
  21. #   The full text of our legal notices is contained in the file called
  22. #   CPYRIGHT, included with this distribution.
  23. #
  24.  
  25. #
  26. # Makefile for Linux of the PINE composer library and 
  27. # stand-alone editor pico.
  28. #
  29.  
  30. # Common macros
  31.  
  32. CC=    gcc
  33. CP=    cp
  34. MAKE=    make
  35. MV=    mv
  36. RM=    rm -f
  37.  
  38. OS=    os2
  39.  
  40. # emx OMF format build
  41. # Used to build .dlls with data exports
  42.  
  43. DEBUG=
  44. ZOMF=    -Zomf
  45. O=    .obj
  46. A=    .lib
  47. E=    .exe
  48. D=    .dll
  49. AR=    emxomfar r
  50. ZLIB=    -Zcrtdll
  51. ZOPT=    -O3 -fno-strength-reduce -mprobe
  52. ZDEF=    -DOS2 -DOMF
  53.  
  54. .SUFFIXES: .c .obj .exe
  55.  
  56. # emx AOUT format build
  57. # Useful for debugging with gdb
  58.  
  59. #DEBUG=    -g
  60. #ZOMF=    
  61. #O=    .o
  62. #A=    .a
  63. #D=    .dll
  64. #E=    .exe
  65. #AR=    ar rus
  66. #ZLIB=    -Zcrtdll
  67. #ZOPT=    -O3 -fno-strength-reduce -mprobe
  68. #ZDEF=    -DOS2
  69.  
  70. #.SUFFIXES: .c .o .exe
  71.  
  72. .c$O: ; $(CC) $(ZOMF) $(CFLAGS) -c $<
  73.  
  74. #includes symbol for debugging
  75. #for normal build
  76. MOUSE=        -DMOUSE
  77. DASHO=        $(ZOPT) $(DEBUG)
  78. CFLAGS=        $(ZDEF) -Dbsd -DFASTVIO -DHELPFILE -DJOB_CONTROL -DANSI $(MOUSE) $(DASHO)
  79. LDFLAGS=    $(ZOMF) $(ZLIB) $(DEBUG)
  80. ARCHIVE=    picolib$A
  81.  
  82. # switches for library building
  83.  
  84. LIBS=
  85.  
  86. OFILES=        attach$O ansi$O basic$O bind$O browse$O \
  87.         buffer$O composer$O display$O file$O fileio$O \
  88.         ibmpc$O line$O osdep$O pico$O random$O region$O \
  89.         search$O os2spell$O window$O word$O
  90.  
  91. CFILES=        attach.c ansi.c basic.c bind.c browse.c buffer.c \
  92.         composer.c display.c file.c fileio.c ibmpc.c line.c osdep.c \
  93.         pico.c random.c region.c search.c os2spell.c \
  94.         window.c word.c
  95.  
  96. HFILES=        estruct.h edef.h efunc.h ebind.h pico.h
  97.  
  98. #
  99. # dependencies for the Unix versions of pico and pico.lib
  100. #
  101.  
  102. all:        blddate$E pico$E pilot$E
  103.  
  104. osdep.c:    os_os2.c
  105.         rm -f osdep.c
  106.         cp os_os2.c osdep.c
  107.  
  108. osdep.h:    os_os2.h
  109.         rm -f osdep.h
  110.         cp os_os2.h osdep.h
  111.  
  112. $(ARCHIVE):    $(OFILES) picolib.def
  113.         $(CC) -Zdll -o picolib$D $(OFILES) picolib.def $(LDFLAGS)
  114.         emximp -o picolib$A picolib.def
  115.  
  116. pico$E:        main.c $(ARCHIVE)
  117.         $(CC) $(CFLAGS) main.c -L. -lpicolib $(LIBS) -o pico$E $(LDFLAGS)
  118.  
  119. pilot$E:    pilot.c $(ARCHIVE) osdep.h
  120.         $(CC) $(CFLAGS) pilot.c -L. -lpicolib $(LIBS) -o pilot$E $(LDFLAGS)
  121.  
  122. blddate$E:    blddate.c
  123.         $(CC) $(CFLAGS) blddate.c -o blddate$E $(LDFLAGS) -lsocket
  124.  
  125. $(OFILES):    osdep.h $(HFILES)
  126.  
  127. clean:
  128.         rm -f *$E *$A *$D *$O *~ *.bak osdep.c osdep.h
  129.